package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.DirectMchntBaseInfo;
import cc.rengu.redp.bizimpl.upmp.domain.UpmpBMchntImageInfo;
import cc.rengu.redp.bizimpl.upmp.vo.DirectMchntImageManageVO;
import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 刘玉亮.LL
 */
public interface IDirectMchntImageInfoService extends IService<UpmpBMchntImageInfo> {

    List<UpmpBMchntImageInfo> getBMchntImageInfoByMchntNo(String mchntNo);

    void transformDirectMchntImageManageVO(List<UpmpBMchntImageInfo> bMchntImageInfoList, DirectMchntImageManageVO directMchntImageManageVO);

    @Transactional(value = "transactionManager")
    OperationResult saveData(String oprMenuId, String oprMenuName, DirectMchntImageManageVO vo, HttpServletRequest request, String webNextUrl, String flag) throws RedpException;
}
